package com.anjbo.bean.estatedeal;

import java.util.List;

/**
 * Created by Administrator on 2017/3/14.
 */
public class SZDealWrapperDto {

    /*一手房总套数*/
    private Integer oneTotal=0;
    /*一手房深圳交易数据*/
    private List<SZDealDto> oneData;
    /*一手房深圳交易详情*/
    private List<SZDealDto> oneDetail;

    private Integer scndTotal=0;
    /*二手房深圳交易数据*/
    private List<SZDealDto> scndData;
    /*二手房深圳交易详情*/
    private List<SZDealDto> scndDetail;

    private String defaultDate;

    public List<SZDealDto> getOneData() {
        return oneData;
    }

    public void setOneData(List<SZDealDto> oneData) {
        if(oneData!=null){
            for(SZDealDto dto:oneData){
                oneTotal+=dto.getTotalNum();
            }
        }
        this.oneData = oneData;
    }

    public List<SZDealDto> getOneDetail() {
        return oneDetail;
    }

    public void setOneDetail(List<SZDealDto> oneDetail) {
        this.oneDetail = oneDetail;
    }

    public List<SZDealDto> getScndData() {
        return scndData;
    }

    public void setScndData(List<SZDealDto> scndData) {
        if(scndData!=null){
            for(SZDealDto dto:scndData){
                scndTotal+=dto.getTotalNum();
            }
        }
        this.scndData = scndData;
    }

    public List<SZDealDto> getScndDetail() {
        return scndDetail;
    }

    public void setScndDetail(List<SZDealDto> scndDetail) {
        this.scndDetail = scndDetail;
    }

    public Integer getOneTotal() {
        return oneTotal;
    }

    public void setOneTotal(Integer oneTotal) {
        this.oneTotal = oneTotal;
    }

    public Integer getScndTotal() {
        return scndTotal;
    }

    public void setScndTotal(Integer scndTotal) {
        this.scndTotal = scndTotal;
    }

    public String getDefaultDate() {
        return defaultDate;
    }

    public void setDefaultDate(String defaultDate) {
        this.defaultDate = defaultDate;
    }
}
